import React from "react";
import {storiesOf} from "@storybook/react";
import {action} from "@storybook/addon-actions";
import Upload from "./upload";


const SimpleUpload = () => (
  <Upload action={"https://www.mocky.io/v2/5cc8019d300000980a055e76"}
  onSuccess={action("success")}
  onError={action("error")}
  onProgress={action("progress")}/>
)

storiesOf("Upload Component",module)
  .add('Upload',SimpleUpload)